package com.derbysoft.synxisadapter.dswitch2.service.impl;

import com.derbysoft.remote.dswitch.core.GenericRQ;
import com.derbysoft.remote.dswitch.core.GenericRS;
import com.derbysoft.synxisadapter.dswitch2.service.HotelProviderService;

public class UnsupportHotelProviderService implements HotelProviderService<GenericRQ, GenericRS> {
    @Override
    public GenericRS invoke(GenericRQ genericRQ) {
        String message = String.format("Unsupported operation [%s]",
                genericRQ.getPayload().getClass().getSimpleName());
        throw new UnsupportedOperationException(message);
    }
}